package com.xjtlu.manager.controller;

import com.xjtlu.manager.entity.po.Demo;
import com.xjtlu.manager.response.Result;
import com.xjtlu.manager.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/demo")
    public Result<?> Demo() {
        List<Demo> demoList = demoService.Demo();
        return Result.ok(demoList);
    }

}
